﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ControlAcceso.Interfaz
{
    public partial class Form_RegistrarCliente : Form
    {
        public Form_RegistrarCliente()
        {
            InitializeComponent();
        }

        private void btn_Salir_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btn_AgregarVehiculo_Click(object sender, EventArgs e)
        {
            Form_AgregarVehiculo agregar = new Form_AgregarVehiculo();
            agregar.Show();
        }

        private void txt_NombreCliente_TextChanged(object sender, EventArgs e)
        {

        }

        private void txt_TelefonoCLiente_TextChanged(object sender, EventArgs e)
        {

        }

        private void cmb_TipoCliente_SelectedValueChanged(object sender, EventArgs e)
        {
            if (cmb_TipoCliente.SelectedIndex == 0)
            {
                gb_Empresa.Hide();
                gb_ConsumidorFinal.Show();
            }
            else if (cmb_TipoCliente.SelectedIndex == 1)
            {
                gb_ConsumidorFinal.Hide();
                gb_Empresa.Show();
            }
            else
            {
                gb_Empresa.Hide();
                gb_ConsumidorFinal.Hide();
            }
        }

        private void btn_EliminarVehiculo_Load(object sender, EventArgs e)
        {
            cmb_TipoCliente.SelectedIndex = 0;
        }

        private void btn_agregarVeh_Click(object sender, EventArgs e)
        {
            Form_AgregarVehiculo agregarVehiculo = new Form_AgregarVehiculo();
            agregarVehiculo.ShowDialog();
        }

        

    }
}
